import logo from './logo.svg';
import './App.css';
import React from 'react';
import Test from './test';
import BaneBMap from './BaneBMap';
import {
    BrowserRouter as Router,
    Route,
    Link
} from 'react-router-dom';

function App() {
    var clickCount = 0;

    function clikcItem(evt) {
        clickCount++;
        evt.currentTarget.innerText = '您点了我' + clickCount + '次!'
    }

    return (
        <div className="App">

            <Router >
                <div>
                    <Link to="/BaneBMap/" style={{color: 'red'}}>
                        <div>百度地图</div>
                    </Link>
                    <Link to="/Test/" style={{color: 'red'}}>
                        <div>小游戏</div>
                    </Link>
                    <Route path="/Test" component={Test}/>
                    <Route path="/BaneBMap" component={BaneBMap}/>
                </div>

            </Router>
        </div>
    );
}

export default App;
